package com.example.rabbitmqdemo.util;

import com.rabbitmq.client.ConnectionFactory;

public class MQUtil {
    public static ConnectionFactory  MQConnectUtil(){
        ConnectionFactory connectionFactory = new ConnectionFactory();
        connectionFactory.setHost("42.194.182.59");
        connectionFactory.setUsername("root");
        connectionFactory.setPassword("Albb123.");
        connectionFactory.setVirtualHost("/");
        connectionFactory.setPort(5672);
        return connectionFactory;
    }
}
